///首页对象，待扩展
var shopHeader = {
};
shopHeader.data={};
$(function(){
    shopHeader.addEvent();
});
shopHeader.init=function(){
    //页面加载事件需添加内容
    this.methods.bannerInit(this);
};
shopHeader.addEvent=function(){
    //事件管理
    //搜索框交互begin
    $(".shop-header .shop-search-input").off("focus").on("focus",function(){
        $(this).parents(".shop-header-search").find(".shop-hot-search").removeClass("shop-active");
    });
    $(".shop-header .shop-search-input").off("blur").on("blur",function(){
        var val = $(this).val();
        //值为空时显示热搜
        if(!val||val.trim()==""){
            $(this).parents(".shop-header-search").find(".shop-hot-search").addClass("shop-active");
        }
    });
    //搜索end
    //搜索框交互begin
    $(".shop-store-header .shop-search-input").off("focus").on("focus",function(){
        $(this).parents(".shop-header-search").find(".shop-hot-search").removeClass("shop-active");
    });
    $(".shop-store-header .shop-search-input").off("blur").on("blur",function(){
        var val = $(this).val();
        //值为空时显示热搜
        if(!val||val.trim()==""){
            $(this).parents(".shop-header-search").find(".shop-hot-search").addClass("shop-active");
        }
    });
};
shopHeader.methods = {};